<?php

/**
 * Description of PersonPersonClass
 *
 * @author adhamhelal
 */
class SampleInfoPanel extends Qpanel {
	protected $mctSample;
        //Controls
        protected $lblId;
        protected $lblSampleCreateBy;
	protected $lblSampleCreateDate;
	protected $lblSampleUpdateBy;
	protected $lblSampleUpdateDate;
            //Template
        protected $strTemplate;

       public function __construct($objParentObject, $mctSample, $strControlId = null) {
                // Call the Parent
                try {
                        parent::__construct($objParentObject, $strControlId);
                } catch (QCallerException $objExc) {
                        $objExc->IncrementOffset();
                        throw $objExc;
                }

                // Setup Template
                $this->strTemplate = __DOCROOT__.__PERSON__ .  '/tpl/qpanel.tpl.php';
                // Set the Person Meta Conrol
                $this->mctSample = $mctSample;



                // Call MetaControl's methods to create qcontrols data fields
                $this->lblId = $this->mctSample->lblId_Create();
                $this->lblId->Name = QApplication::Translate("Sample: Id");
                $this->lblId->SetParentControl($this);

                $objSample = $this->mctSample->__get('Sample');



                $this->lblSampleCreateBy = $this->mctSample->lblCreateBy_Create();
                $this->lblSampleCreateBy->Name = QApplication::Translate("Sample: Created By");
                $this->lblSampleCreateBy ->SetParentControl($this);

                $this->lblSampleCreateDate = $this->mctSample->lblCreateDate_Create(null,QDateTime::FormatDisplayDateTimeFull);
                $this->lblSampleCreateDate->Name = QApplication::Translate("Sample: Created Date");
                $this->lblSampleCreateDate->SetParentControl($this);

                $this->lblSampleUpdateBy = $this->mctSample->lblUpdateBy_Create();
                $this->lblSampleUpdateBy->Name = QApplication::Translate("Sample: Update By");
                $this->lblSampleUpdateBy->SetParentControl($this);

                $this->lblSampleUpdateDate = $this->mctSample->lblUpdateDate_Create(null,QDateTime::FormatDisplayDateTimeFull );
                $this->lblSampleUpdateDate->Name = QApplication::Translate("Sample: Update Date");
                $this->lblSampleUpdateDate->SetParentControl($this);


    }


}
?>


